// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2022 Mediatek. All rights reserved.
//
// Author: Bo Pan <bo.pan@mediatek.com>
//         Allen-KH Cheng <allen-kh.cheng@mediatek.com>
//         Tinghan Shen <tinghan.shen@mediatek.com>

#ifdef __SOF_LIB_DMA_H__

#ifndef __PLATFORM_LIB_DMA_H__
#define __PLATFORM_LIB_DMA_H__

#define PLATFORM_NUM_DMACS		2

/* max number of supported DMA channels */
#define PLATFORM_MAX_DMA_CHAN		32

#define DMA_ID_AFE_MEMIF		0
#define DMA_ID_HOST			1

#define dma_chan_irq(dma, chan)		dma_irq(dma)
#define dma_chan_irq_name(dma, chan)	dma_irq_name(dma)

#endif /* __PLATFORM_LIB_DMA_H__ */

#else

#error "This file shouldn't be included from outside of sof/lib/dma.h"

#endif /* __SOF_LIB_DMA_H__ */
